package com.etc.entity;

public class Question {
     private int qId;
     private String qTitle;
     private String qContent;
     private String qDate;
     private String userName;
     private int userId;
     private int c;
     private int qPraise;
     
     
	public int getqPraise() {
		return qPraise;
	}
	public void setqPraise(int qPraise) {
		this.qPraise = qPraise;
	}
	public int getC() {
		return c;
	}
	public void setC(int c) {
		this.c = c;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public Question(int qPraise, int qId) {
 		super();
 		this.qPraise = qPraise;
 		this.qId = qId;
 	}
	
	public Question(String qTitle, String qContent, int userId) {
 		super();
 		this.qTitle = qTitle;
 		this.qContent = qContent;
 		this.userId = userId;
 	}
     
     public Question(String qTitle, String qContent, String qDate, int userId) {
 		super();
 		this.qTitle = qTitle;
 		this.qContent = qContent;
 		this.qDate = qDate;
 		this.userId = userId;
 	}
	public Question() {
		super();
	}
	public Question(String qTitle, String qContent, String qDate,int userId,int qId) {
		super();
		this.qId = qId;
		this.qTitle = qTitle;
		this.qContent = qContent;
		this.qDate = qDate;
		this.userId = userId;
	}
	public Question(int qId, String qTitle, String qContent, String qDate, String userName) {
		super();
		this.qId = qId;
		this.qTitle = qTitle;
		this.qContent = qContent;
		this.qDate = qDate;
		this.userName = userName;
	}
	public int getqId() {
		return qId;
	}
	public void setqId(int qId) {
		this.qId = qId;
	}
	public String getqTitle() {
		return qTitle;
	}
	public void setqTitle(String qTitle) {
		this.qTitle = qTitle;
	}
	public String getqContent() {
		return qContent;
	}
	public void setqContent(String qContent) {
		this.qContent = qContent;
	}
	public String getqDate() {
		return qDate;
	}
	public void setqDate(String qDate) {
		this.qDate = qDate;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Override
	public String toString() {
		return "Question [qId=" + qId + ", qTitle=" + qTitle + ", qContent=" + qContent + ", qDate=" + qDate
				+ ", userName=" + userName + ", userId=" + userId + ", c=" + c + "]";
	}
     
     
}
